package com.zfxt.biz.autoconfig;

import com.alibaba.fastjson.support.spring.FastJsonpHttpMessageConverter4;
import org.springframework.http.MediaType;

import java.nio.charset.Charset;
import java.util.Arrays;

/**
 * Created by Administrator on 2018/9/11.
 */
public class FastJsonpHttpMessageConverter5 extends FastJsonpHttpMessageConverter4 {
    public static final Charset DEFAULT_CHART=Charset.forName("UTF-8");
    public FastJsonpHttpMessageConverter5(){
        setDefaultCharset(DEFAULT_CHART);
        setSupportedMediaTypes(Arrays.asList(MediaType.APPLICATION_JSON,new MediaType("application","*+json")));

    }
}
